-
Notifications
You must be signed in to change notification settings - Fork 752
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Editable installs for uv tool
#5454
Conversation
Prepared 1 package in [TIME] | ||
Installed 1 package in [TIME] | ||
+ black==0.1.0 (from file://[WORKSPACE]/scripts/packages/black_editable) | ||
"###); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we show the receipt here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we also add a test for uv tool install back
after uv tool install -e ./scripts/packages/black_editable
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we show the receipt here?
uv tool install
exits with a failure for the black_editable
package since it has no executables. So no receipt gets created in this scenario.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add an executable to it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've added a simple executable and added additional snapshot tests.
Can we also add a test for uv tool install back after uv tool install -e ./scripts/packages/black_editable?
I added this too, but it just installs black
version from the PyPi server in this case, do you think that's the right behaviour here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that's because you're creating a new context here. If you remove that, it retains the install (but the behavior is kind of confusing -- #5489 helps).
I'd like to merge #5489 before this. |
Actually, it's ok to merge as-is. There are some confusing behaviors, but they also exist on |
Summary
Resolves #5436.
Test Plan
cargo test
venv has the
.pth
files.